<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="css/bootstrap.css">
    <script src="js/jquery-2.1.4.min.js"></script>
    <style>
        .navbar-nav a{
            background: #0099FF;
        }
    </style>

</head>
<body>
<div>
    <nav class="navbar navbar-fixed-top" role="navigation">
        <div class="container">
            <div class="navbar-header">
                <a href="#" class="navbar-brand">Project Name</a>
            </div>
            <div id="navbar" class="collapse navbar-collapse">
                <ul class="nav navbar-nav">
                    <li class="active"><a href="#">Home</a></li>
                    <li><a href="#">About</a></li>
                    <li><a href="#">Contact</a></li>
                </ul>
            </div>
        </div>
    </nav>
    <script>
        $(function(){
            $('.container .nav li').hover(function(){
                $(this).find('a').css('background','green');
            },function(){
                $(this).find('a').css('background','blue');
            });
        });
    </script>
</div>
</body>
</html>